//新浪IP地址查询接口：http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js
//太平洋网络 http://whois.pconline.com.cn/ipJson.jsp 测试较快
//126 http://ip.ws.126.net/ipquery

var apiaddress = 'http://whois.pconline.com.cn/ipJson.jsp';
var arrareashow = {
"4501" : "南宁",
"4502" : "柳州",
"4503" : "桂林",
"4504" : "梧州",
"4505" : "北海",
"4506" : "防城港",
"4507" : "钦州",
"4508" : "贵港",
"4509" : "玉林",
"4510" : "百色",
"4511" : "贺州",
"4512" : "河池",
"4513" : "来宾",
"4514" : "崇左"
};
var weikeredirect = 'http://192.168.1.199/weike/';
var arrweike = new Array();//交易平台 key城市代码的前4位 450000 广西
arrweike["4501"] = weikeredirect+"nn";//南宁
arrweike["4502"] = weikeredirect+"lz";//柳州
arrweike["4503"] = weikeredirect+"gl";//桂林
arrweike["4504"] = weikeredirect+"wz";//梧州
arrweike["4505"] = weikeredirect+"bh";//北海
arrweike["4506"] = weikeredirect+"fcg";//防城港
arrweike["4507"] = weikeredirect+"qz";//钦州
arrweike["4508"] = weikeredirect+"gg";//贵港
arrweike["4509"] = weikeredirect+"yl";//玉林
arrweike["4510"] = weikeredirect+"bs";//百色
arrweike["4511"] = weikeredirect+"hz";//贺州
arrweike["4512"] = weikeredirect+"hc";//河池
arrweike["4513"] = weikeredirect+"lb";//来宾
arrweike["4514"] = weikeredirect+"cz";//崇左
var jobredirect = 'http://192.168.1.199/job/';//人才
var arrjob = new Array();
arrjob["4501"] = jobredirect+"nn";
arrjob["4502"] = jobredirect+"lz";
arrjob["4503"] = jobredirect+"gl";
arrjob["4504"] = jobredirect+"wz";
arrjob["4505"] = jobredirect+"bh";
arrjob["4506"] = jobredirect+"fcg";
arrjob["4507"] = jobredirect+"qz";
arrjob["4508"] = jobredirect+"gg";
arrjob["4509"] = jobredirect+"yl";
arrjob["4510"] = jobredirect+"bs";
arrjob["4511"] = jobredirect+"hz";
arrjob["4512"] = jobredirect+"hc";
arrjob["4513"] = jobredirect+"lb";
arrjob["4514"] = jobredirect+"cz";
var shopredirect = 'http://192.168.1.199/shop/';//商城
var arrshop = new Array();
arrshop["4501"] = shopredirect+"nn";
arrshop["4502"] = shopredirect+"lz";
arrshop["4503"] = shopredirect+"gl";
arrshop["4504"] = shopredirect+"wz";
arrshop["4505"] = shopredirect+"bh";
arrshop["4506"] = shopredirect+"fcg";
arrshop["4507"] = shopredirect+"qz";
arrshop["4508"] = shopredirect+"gg";
arrshop["4509"] = shopredirect+"yl";
arrshop["4510"] = shopredirect+"bs";
arrshop["4511"] = shopredirect+"hz";
arrshop["4512"] = shopredirect+"hc";
arrshop["4513"] = shopredirect+"lb";
arrshop["4514"] = shopredirect+"cz";

function setCookie(c_name,value,expiredays)
{
    var exdate=new Date()
    exdate.setDate(exdate.getDate()+expiredays)
    //document.cookie=c_name+ "=" +escape(value)+";path=/;domain=htxgcw.com"+
    document.cookie=c_name+ "=" +escape(value)+";path=/"+
    ((expiredays==null) ? "" : ";expires="+exdate.toGMTString())
}
function getCookie(c_name)
{
    if (document.cookie.length>0)
    {
        c_start=document.cookie.indexOf(c_name + "=")
        if (c_start!=-1)
        { 
            c_start=c_start + c_name.length+1 
            c_end=document.cookie.indexOf(";",c_start)
            if (c_end==-1) c_end=document.cookie.length
            return unescape(document.cookie.substring(c_start,c_end))
        } 
    }
    return ""
}